package com.trt.files.resource;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author tanrentao
 * @date 2021-12-03
 * @desc
 */
@Data
@Component
// @PropertySource("classpath:file-dev.properties")
@PropertySource("classpath:file-${spring.profiles.active}.properties")
@ConfigurationProperties(prefix = "file")
public class FileResource {

    private String host;

    private String endpoint;
    private String bucketName;
    private String objectName;
    private String ossHost;

}
